package com.uday.frmwrk.dataaccess;

import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.support.TransactionTemplate;

public class BaseTrasactionAwareService {
	protected TransactionTemplate transactionTemplate;
	private PlatformTransactionManager  transactionManager;
	
	/**
	 * @return the transactionManager
	 */
	public PlatformTransactionManager getTransactionManager() {
		return transactionManager;
	}

	/**
	 * @param transactionManager the transactionManager to set
	 */
	public void setTransactionManager(PlatformTransactionManager transactionManager) {
		this.transactionManager = transactionManager;
		this.transactionTemplate = new TransactionTemplate(transactionManager);
	}
}
